//
//  XiaoKaiAttackTableViewCell.m
//  Project_A
//
//  Created by 凯 on 15/7/14.
//  Copyright (c) 2015年 zhoukaidong. All rights reserved.
//

#import "TypeHeaderView.h"

@implementation TypeHeaderView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //    定义一个view  用来添加各个sectionbutton
        self.imageView = [[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 150)]autorelease];
      //  self.imageView.backgroundColor = [UIColor redColor];
        [self addSubview:self.imageView];
        
        
        self.sectionButton = [[UIButton buttonWithType:UIButtonTypeCustom]autorelease];
        _sectionButton.frame = CGRectMake(0, 0, self.bounds.size.width, 150);
        [_sectionButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    //    _sectionButton.backgroundColor = [UIColor redColor];
        [self addSubview:_sectionButton];

    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
